using System;
using System.Collections.Generic;
using Table.DataModel;
namespace Table.Dao
{
    public class TableTradeConfigDao:DaoBase<TableTradeConfig>
    {
        public override string GetFileName()
        {
            return "TableTradeConfig.csv";
        }
        protected override TableTradeConfig ParseRowData(string[] rowData)
        {
            return null;
        }
        protected override void InitTableRowData(TableFileReader dfr)
        {
            for (int i = 0; i < 5; ++i)
            {
                dfr.ReadRow();
            }
            TableTradeConfig.RefreshInterval = int.Parse(dfr.ReadRow()[1]);
            TableTradeConfig.OpenLimit_Rise = int.Parse(dfr.ReadRow()[1]);
            TableTradeConfig.ReleaseLimit_Fall = int.Parse(dfr.ReadRow()[1]);
            TableTradeConfig.OpenLimit_Flat = int.Parse(dfr.ReadRow()[1]);
            TableTradeConfig.ReleaseLimit_Flat = int.Parse(dfr.ReadRow()[1]);
            TableTradeConfig.MarketTax = int.Parse(dfr.ReadRow()[1]);
            TableTradeConfig.FaceToFaceTax = int.Parse(dfr.ReadRow()[1]);
            TableTradeConfig.FaceToFaceLevel = int.Parse(dfr.ReadRow()[1]);
            TableTradeConfig.FaceToFaceCheckingTime = int.Parse(dfr.ReadRow()[1]);
            TableTradeConfig.PlayerShopCreateLevel = int.Parse(dfr.ReadRow()[1]);
            TableTradeConfig.PlayerShopTax = int.Parse(dfr.ReadRow()[1]);
            TableTradeConfig.PlayerShopSellFee = int.Parse(dfr.ReadRow()[1]);
            TableTradeConfig.PlayerShopSellFeeMax = int.Parse(dfr.ReadRow()[1]);
            TableTradeConfig.PlayerShopChangeNameCost = int.Parse(dfr.ReadRow()[1]);
            TableTradeConfig.PlayerShopCreateCost = int.Parse(dfr.ReadRow()[1]);
            TableTradeConfig.PlayerShopCreateFunds = int.Parse(dfr.ReadRow()[1]);
            TableTradeConfig.PlayerShopInitCell = int.Parse(dfr.ReadRow()[1]);
            TableTradeConfig.PlayerShopAddCellCost = dfr.ReadRow()[1];
            TableTradeConfig.PlayerShopCellMaintain = int.Parse(dfr.ReadRow()[1]);
            TableTradeConfig.PlayerShopTakeoutDay = int.Parse(dfr.ReadRow()[1]);
            TableTradeConfig.PlayerShopPublicityTime = int.Parse(dfr.ReadRow()[1]);
            TableTradeConfig.PlayerShopSellTime = int.Parse(dfr.ReadRow()[1]);
            TableTradeConfig.PlayerShopFundsMinDay = int.Parse(dfr.ReadRow()[1]);
            TableTradeConfig.PlayerShopWatchMax = int.Parse(dfr.ReadRow()[1]);
            TableTradeConfig.PlayerShopCheckingTime = int.Parse(dfr.ReadRow()[1]);
            TableTradeConfig.SystemMarketCurrency = int.Parse(dfr.ReadRow()[1]);
            TableTradeConfig.PlayerShopCurrency = int.Parse(dfr.ReadRow()[1]);
            TableTradeConfig.FaceToFaceDayCount = int.Parse(dfr.ReadRow()[1]);
            TableTradeConfig.PlayerShopSearchLevel = dfr.ReadRow()[1];
            TableTradeConfig.PlayerShopSearchType = dfr.ReadRow()[1];
            TableTradeConfig.PlayerShopSearchSmallType = dfr.ReadRow()[1];
            TableTradeConfig.PlayerShopSearchQuality = dfr.ReadRow()[1];
            TableTradeConfig.PlayerShopSearchSingleQuality = dfr.ReadRow()[1];
            TableTradeConfig.FaceToFaceDis = int.Parse(dfr.ReadRow()[1]);
            TableTradeConfig.PlayerShopTopDealingCount = int.Parse(dfr.ReadRow()[1]);
            TableTradeConfig.PlayerShopTopDealingDays = int.Parse(dfr.ReadRow()[1]);
            TableTradeConfig.FaceToFaceFinishToSeller = dfr.ReadRow()[1];
            TableTradeConfig.FaceToFaceFinishTobuyer = dfr.ReadRow()[1];
            TableTradeConfig.PlayerShopNameLength = dfr.ReadRow()[1];
            TableTradeConfig.PlayerShopPageShowCount = int.Parse(dfr.ReadRow()[1]);
            TableTradeConfig.FaceToFaceTimeout = int.Parse(dfr.ReadRow()[1]);
            TableTradeConfig.UnlockNPC = dfr.ReadRow()[1];
            TableTradeConfig.PlayerShopGainMoneyCD = int.Parse(dfr.ReadRow()[1]);
            TableTradeConfig.PlayerShopLeastMaintainDay = int.Parse(dfr.ReadRow()[1]);
        }
    }
}
